﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BOL.Shopping
{
    public class Item
    {
        public string id {get; set;}
        public int soluong {get; set;}
        public Item(string id, int sl)
        {
            this.id = id;
            this.soluong = sl;
        }
        public Item(string id)
        {
            this.id = id;
            this.soluong = 1;

        }
        public string getIDProduct()
        {
          
              return  id.Split('-')[0].ToString() ;
           

        }
    }
}